﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchFriend.aspx.cs" Inherits="NJL.Web.AdminVisitor.SearchFriend" %>

<%@ Register Src="../Controls/WUCUservisitorLeft.ascx" TagName="WUCUservisitorLeft"
    TagPrefix="uc3" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="../Controls/UCenterHeader.ascx" TagName="UCenterHeader" TagPrefix="uc4" %>
<%@ Register Src="../Controls/UcenterFooter.ascx" TagName="UcenterFooter" TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>发布信息</title>
    <link href="../Styles/base.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/manage.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/js/jquery.skygqbox.1.3.js" type="text/javascript"></script>
    <script type="text/javascript">
        function textboxSelect() {
            var checkbox = document.getElementsByName("cbxSingle");
            for (var i = 0; i < checkbox.length; i++) {
                checkbox[i].checked = !checkbox[i].checked;
            }
        }
        function checkCheckboxState() {
            var checkbox = document.getElementsByName("cbxSingle");
            var hiddenId = "";
            var count = 0;
            for (var i = 0; i < checkbox.length; i++) {
                if (checkbox[i].checked == true) {
                    hiddenId += checkbox[i].value + ",";
                    count++;
                }
            }
            if (count == 0) {
                alert('请选择您要删除的记录')
                return false;
            }
            else {
                if (window.confirm("您确定要删除吗？")) {
                    hiddenId = hiddenId.substring(0, hiddenId.length - 1);
                    document.getElementById("<%=HSelectId.ClientID %>").value = hiddenId;
                }
                else {
                    return false;
                }
            }
        }  
    </script>
</head>
<body class="managebg">
    <form id="form1" runat="server">
    <uc4:UCenterHeader ID="UCenterHeader1" runat="server" />
    <div class="managecont02 cleanFlex">
        <!--右侧内容-->
        <div class="f_right manageRight" id="right">
            <!--位置-->
            <div class="place">
                <span>欢迎您：<%=UserName %>&nbsp;&nbsp;[<a href="/Logout.aspx" class="green">退出登陆</a>]</span>
                <p>
                    您现在的位置是&nbsp;<strong><a href="Default.aspx">用户中心</a></strong>&gt;&gt;<strong><a
                        href="#">我的好友</a></strong></p>
            </div>
            <!--基本信息内容-->
            <div class="cleanFlex m_top_10">
            </div>
            <div>
                <!--标题-->
                <div class="titleMangeFriden">
                    <div class="titleMangeFridenL">
                        <div class="titleMangeFridenM">
                            <!--按钮-->
                            <div>
                                <input type="button" value="我的好友" class="grayBtn" onmouseover="this.className='greenBtnOver'"
                                    onmouseout="this.className='greenBtn'" onclick="location.href='Friend.aspx'" />
                                <input type="button" value="查找好友" class="grayBtn" onmouseover="this.className='greenBtnOver'"
                                    onmouseout="this.className='greenBtn'" onclick="location.href='SearchFriend.aspx'" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="cont">
                    <ul class="manageFriend">
                        <li>
                            <p>
                                <asp:TextBox ID="txtUserName" runat="server" Text="支持模糊查询" Width="123px" value="支持模糊查询"
                                    onblur="if(this.value=='') this.value='支持模糊查询';" onfocus="if(this.value=='支持模糊查询') this.value='';"></asp:TextBox>
                                用户名
                                <asp:Button ID="btnSearch" CssClass="input" runat="server" Text="搜索" class="greenBtn02"
                                    OnClick="btnSearch_Click" />
                            </p>
                        </li>
                        <asp:Repeater runat="server" ID="rptContent">
                            <ItemTemplate>
                                <li>
                                    <dd>
                                        <img src="/Images/avatar.jpg" alt="" class="pic" />
                                    </dd>
                                    <dd>
                                        积分：<%#Eval("INTEGRAL")%></dd>
                                    <dd>
                                        <%#Eval("USER_NAME")%>
                                        <span>加为好友</span>
                                    </dd>
                                    <dd>
                                    
                                        <span><a href=">去串个门</span>
                                    </dd>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <!--弹出层-->
                <div class="Popup" id="win1" style="display: none">
                    <ul>
                        <li id="mesinfo">
                            <textarea id="TextArea1" cols="20" rows="5">让我们成为朋友吧</textarea>
                        </li>
                    </ul>
                    <p>
                        <input type="button" value="确定" class="greenBtn02" onmouseover="this.className='greenBtnOver02'"
                            onmouseout="this.className='greenBtn02'" onclick="addFriend(<%#Eval("ID") %>)" />
                    </p>
                </div>
                <!--分页-->
                <div class="titleMangeFriden">
                    <div class="titleMangeFridenL">
                        <div class="titleMangeFridenM">
                            <!--分页-->
                            <div class="page f_right">
                                共
                                <asp:Literal ID="lit" runat="server"></asp:Literal>
                                条记录&nbsp;&nbsp;&nbsp;&nbsp; 共
                                <asp:Literal ID="litAllPage" runat="server"></asp:Literal>
                                页&nbsp;&nbsp;&nbsp;&nbsp; 第
                                <asp:Literal ID="litCurrentPage" runat="server"></asp:Literal>
                                页
                                <asp:LinkButton ID="lbtnFirst" runat="server" OnClick="lbtnFirst_Click">首页</asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="lbtnPrev" runat="server" OnClick="lbtnPrev_Click">上一页</asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="lbtnNext" runat="server" OnClick="lbtnNext_Click">下一页</asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="lbtnEnd" runat="server" OnClick="lbtnEnd_Click">末页</asp:LinkButton>
                                跳转到第
                                <asp:TextBox ID="txtPage" runat="server" Width="32px" MaxLength="8" Style="text-align: center"></asp:TextBox>&nbsp;页&nbsp;
                                <asp:Button ID="btnRir" runat="server" Text="确定" OnClick="btnRir_Click" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <uc3:WUCUservisitorLeft ID="WUCUservisitorLeft1" runat="server" />
        <div class="managecontbottom">
        </div>
    </div>
    <div style="text-align: center">
    </div>
    <asp:HiddenField ID="HSelectId" runat="server" />
    <uc5:UcenterFooter ID="UcenterFooter1" runat="server" />
    </form>
</body>
</html>
